package com.mapper;

import com.entity.PostLocation;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName: PostLocationMapper
 * Description:
 *
 * @author L_Z_R
 * @version 1.0
 * @create 2025/05/18 20:14
 */
public interface PostLocationMapper {
    /**
     * 添加帖子位置
     * @param postLocation 帖子位置对象
     */
    void addPostLocation(PostLocation postLocation);

    /**
     * 根据帖子id查询帖子位置
     * @param postId 帖子id
     * @return 帖子位置对象
     */
    PostLocation selectPostLocationByPostId(@Param("postId") Integer postId);
}
